package com.example.rabbitmq;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Project:spring-boot-rabbitmq
 * <p>
 * Title:RabbitMqMessageConsumer.java
 * <p>
 * Description:
 * <p>
 * Copyrigth:Jiang Software LTD.co Copyright (c) 2021
 * <p>
 * 
 * @version 1.0
 * @since 1.8
 * @author jiang
 * @history 2021 jiang create
 */

@Component
public class MessageConsumer {
	/**
	 * 进行消息的接受处理
	 *
	 * @param text
	 */
	@RabbitListener(queues = "rabbitmq.queue")
	public void receiveMessage(String text) {
		System.err.println("【*** 接受消息 ***】 " + text);
	}
}
